package com.ming.easyDevelop.mappers;

import com.ming.easyDevelop.mappers.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
/**
 * @Description  Mapper接口
 * @Author ming
 * @Date 2024/07/10
 */
@Mapper
public interface CouponsMapper<T,P> extends BaseMapper {
	/**
	 * 根据CouponCode查询
	 */
	T selectByCouponCode(@Param("couponCode") String couponCode);
	/**
	 * 根据CouponCode更新
	 */
	Long updateByCouponCode(@Param("bean") T t, @Param("couponCode") String couponCode);
	/**
	 * 根据CouponCode删除
	 */
	Long deleteByCouponCode(@Param("couponCode") String couponCode);
}